package cn.lyjuan.payment.third.base.common;


import org.mybatis.generator.api.ShellRunner;

import java.io.IOException;

public class MybatisGeneratorRun
{
    public static void main(String[] args) throws IOException, InterruptedException
    {
        args = new String[]{"-configfile", "base-common/src/test/resources/generatorConfig.xml", "-overwrite"};
        ShellRunner.main(args);

        // 备份
        MySqlDumpTest dump = new MySqlDumpTest();
        dump.before();
        dump.bumpSchema();// 结构
        dump.bumpData();// 数据
    }
}
